package com.microstream.module.forum.client;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.RootPanel;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.TextArea;
import com.google.gwt.user.client.ui.TextBox;

/**
 * Entry point classes define <code>onModuleLoad()</code>.
 */
public class Forum implements EntryPoint {
	private Button clickMeButton;
	public void onModuleLoad() {
		RootPanel rootPanel = RootPanel.get();

		clickMeButton = new Button();
		rootPanel.add(clickMeButton, 46, 292);
		clickMeButton.setSize("239px", "26px");
		clickMeButton.setText("Click me!");
		
		Label label = new Label("\u4E3B\u9898");
		rootPanel.add(label, 10, 20);
		
		TextArea textArea = new TextArea();
		rootPanel.add(textArea, 48, 48);
		textArea.setSize("364px", "202px");
		
		Label label_1 = new Label("\u5185\u5BB9");
		rootPanel.add(label_1, 10, 48);
		label_1.setSize("26px", "15px");
		
		TextBox textBox = new TextBox();
		rootPanel.add(textBox, 46, 12);
		textBox.setSize("366px", "15px");
		clickMeButton.addClickHandler(new ClickHandler(){
			public void onClick(ClickEvent event) {
				Window.alert("Hello, GWT World!");
			}
		});
	}
}
